package mmoon.mmoonstory.items;

import mmoon.mmoonstory.interfaces.InitItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;

public class ItemIngots extends Item implements InitItem {
    public static final String ObjID = "ingots";

    public ItemIngots() {
        super();
        this.setHasSubtypes(true);
        this.setMaxDamage(0);
        this.setNoRepair();
        this.init(ObjID);
    }

    @Override
    public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items) {
        if (this.isInCreativeTab(tab)) {
            for (int i = 0; i < 5; ++i) {
                items.add(new ItemStack(this, 1, i));
            }
        }
    }
}
